package com.example.mygame.myfive;

import android.graphics.Point;

public class MyPoint extends Point {
	private int type;
	private boolean chessed;
	
	//type
	public static int DEFAULT = 0;
	public static int BLACK = 1;
	public static int WHITE = 2;
	
	
	public MyPoint(int x, int y, int type, boolean chessed) {
		super();
		this.x = x;
		this.y = y;
		this.type = type;
		this.chessed = chessed;
	}
	
	public MyPoint(int x, int y) {
		super();
		this.x = x;
		this.y = y;
		this.type = DEFAULT;
		this.chessed = false;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public boolean isChessed() {
		return chessed;
	}

	public void setChessed(boolean chessed) {
		this.chessed = chessed;
	}
	
}
